import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { SharedModule } from 'src/app/shared/shared.module';

// 导入 ngx-echarts
import { NgxEchartsModule } from 'ngx-echarts';

import { MonitorComponent } from './pages/monitor/monitor.component';
import { MonitorListComponent } from './pages/monitor-list/monitor-list.component';
import { MonitorTableComponent } from './pages/monitor-list/monitor-table/monitor-table.component';
import { MonitorTreemapComponent } from './pages/monitor-treemap/monitor-treemap.component';


const routes: Routes = [
  { path: '', component: MonitorComponent },
];

@NgModule({
  // 导入路由配置和共享模版
  imports: [RouterModule.forChild(routes), SharedModule, NgxEchartsModule],
  declarations: [
    MonitorComponent,
    MonitorListComponent,
    MonitorTableComponent,
    MonitorTreemapComponent
  ]
})
export class MonitorModule { }
